package com.project.service.impl;

import com.project.bean.CountMonthSellBean;
import com.project.mapper.ICountMonthSellMapper;
import com.project.service.ICountMonthSellService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;
@Service
@Transactional
public class CountMonthSellServiceImpl implements ICountMonthSellService {

   @Autowired
   private ICountMonthSellMapper countMonthSellMapper;
    @Override
    public List<CountMonthSellBean> findByYear(String year) {
        return countMonthSellMapper.findByYear(year);
    }

    @Override
    public List<Integer> findYear() {
        return countMonthSellMapper.findYear();
    }
}
